package eu.runelord.programmers.t140350;

public class App {

	public static void main(String[] args) {
		Watek watek1 = new Watek("1");
		Watek watek2 = new Watek("2");
		watek1.start();
		watek2.start();
	}
}

class Watek extends Thread {

	public Watek(String name) {
		this.setName(name);
	}

	public void run() {
		while (true) {
			System.out.println("Jestem wątkiem " + getName());
			yield();
		}
	}
}
